<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车</title>
    <style>
        #shopping{
            border: 5px solid gray;
            width: 160px;
            height: 45px;
            margin-top: 10%;
            margin-left: 50%;
            text-align: center;
            line-height: 45px;
            background-color: #eeeeee;
            position: relative;
            color: black;
        }
        #shopping>i{
            display: inline-block;
            color: white;
            background-color: red;
            width: 18px;
            height: 18px;
            font-size: 14px;
            border-radius: 40% 40% 40% 0;
            position: absolute;
            top: -5px;
            right: 25px;
            line-height: 18px;
        }
        #shopping>span{
            position: absolute;
            right:5px;
        }

    </style>
</head>
<body>
<div id="shopping">
    我的购物车
    <span>&gt;</span>
    <i>1</i>
</div>
</body>
</html>